import service from "@/request/index";

//获取数据
export function getProjectList(data:any){
  //const param = JSON.stringify(data)
  return service({
      url:`/project/page?page=${data.page}&pageSize=${data.pageSize}&projectName=${data.projectName}&launchDate=${data.launchDate}`,     
      method:'get',
      data,
  })
}
//删除
export function delProjectList(data:any){
  //const param = JSON.stringify(data)
  return service({
      url:`/project?id=${data.id}`,      
      method:'delete' ,
      data    
  })
}

//新增项目
export function addProjectList(data:any){
  return service({
      url:'/project',
      method:'post',
      data
  })
}

//编辑进度配置计划
export function editProcessList(data:any){
  return service({
      url:'/project/edit_schedule',
      method:'post',
      data
  })
}

//查询进度配置计划
export function selectProcessList(data:any){
  return service({
      url:'/project/select_schedule',
      method:'post',
      data
  })
}